package com.buba.user.service.impl;

import com.buba.pojo.user.ThePatient;
import com.buba.user.mapper.ThePatientMapper;
import com.buba.user.pojoVo.ThePatientVo;
import com.buba.user.service.ThePatientService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 就诊人表 服务实现类
 * </p>
 *
 * @author testjava
 * @since 2022-06-09
 */
@Service
public class ThePatientServiceImpl extends ServiceImpl<ThePatientMapper, ThePatient> implements ThePatientService {

    @Autowired
    private ThePatientMapper thePatientMapper;

    public ThePatientServiceImpl() {
    }

    public ThePatientVo getThePatientByIdOne(Integer userId) {
        return this.thePatientMapper.getThePatientByIdOne(userId);
    }

    public List<ThePatientVo> getThePatientById(Integer userId) {
        return this.thePatientMapper.getThePatientById(userId);
    }

}
